/*
 * MIT License
 *
 * Copyright (c) 2023 OrdinaryRoad
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in all
 * copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 * SOFTWARE.
 */

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: douyin.proto

// Protobuf Java Version: 3.25.3
package tech.ordinaryroad.live.chat.client.codec.douyin.protobuf;

/**
 * Protobuf type {@code ChatReplyRespInfo}
 */
public final class ChatReplyRespInfo extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:ChatReplyRespInfo)
    ChatReplyRespInfoOrBuilder {
private static final long serialVersionUID = 0L;
  // Use ChatReplyRespInfo.newBuilder() to construct.
  private ChatReplyRespInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private ChatReplyRespInfo() {
    replyWebcastUid_ = "";
  }

  @Override
  @SuppressWarnings({"unused"})
  protected Object newInstance(
      UnusedPrivateParameter unused) {
    return new ChatReplyRespInfo();
  }

  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return Douyin.internal_static_ChatReplyRespInfo_descriptor;
  }

  @Override
  protected FieldAccessorTable
      internalGetFieldAccessorTable() {
    return Douyin.internal_static_ChatReplyRespInfo_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            ChatReplyRespInfo.class, Builder.class);
  }

  private int bitField0_;
  public static final int REPLY_MSG_ID_FIELD_NUMBER = 1;
  private long replyMsgId_ = 0L;
  /**
   * <code>uint64 reply_msg_id = 1;</code>
   * @return The replyMsgId.
   */
  @Override
  public long getReplyMsgId() {
    return replyMsgId_;
  }

  public static final int REPLY_ID_FIELD_NUMBER = 2;
  private long replyId_ = 0L;
  /**
   * <code>uint64 reply_id = 2;</code>
   * @return The replyId.
   */
  @Override
  public long getReplyId() {
    return replyId_;
  }

  public static final int REPLY_TEXT_FIELD_NUMBER = 3;
  private Text replyText_;
  /**
   * <code>.Text reply_text = 3;</code>
   * @return Whether the replyText field is set.
   */
  @Override
  public boolean hasReplyText() {
    return ((bitField0_ & 0x00000001) != 0);
  }
  /**
   * <code>.Text reply_text = 3;</code>
   * @return The replyText.
   */
  @Override
  public Text getReplyText() {
    return replyText_ == null ? Text.getDefaultInstance() : replyText_;
  }
  /**
   * <code>.Text reply_text = 3;</code>
   */
  @Override
  public TextOrBuilder getReplyTextOrBuilder() {
    return replyText_ == null ? Text.getDefaultInstance() : replyText_;
  }

  public static final int REPLY_UID_FIELD_NUMBER = 4;
  private long replyUid_ = 0L;
  /**
   * <code>uint64 reply_uid = 4;</code>
   * @return The replyUid.
   */
  @Override
  public long getReplyUid() {
    return replyUid_;
  }

  public static final int REPLY_WEBCAST_UID_FIELD_NUMBER = 5;
  @SuppressWarnings("serial")
  private volatile Object replyWebcastUid_ = "";
  /**
   * <code>string reply_webcast_uid = 5;</code>
   * @return The replyWebcastUid.
   */
  @Override
  public String getReplyWebcastUid() {
    Object ref = replyWebcastUid_;
    if (ref instanceof String) {
      return (String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      String s = bs.toStringUtf8();
      replyWebcastUid_ = s;
      return s;
    }
  }
  /**
   * <code>string reply_webcast_uid = 5;</code>
   * @return The bytes for replyWebcastUid.
   */
  @Override
  public com.google.protobuf.ByteString
      getReplyWebcastUidBytes() {
    Object ref = replyWebcastUid_;
    if (ref instanceof String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (String) ref);
      replyWebcastUid_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  private byte memoizedIsInitialized = -1;
  @Override
  public final boolean isInitialized() {
    byte isInitialized = memoizedIsInitialized;
    if (isInitialized == 1) return true;
    if (isInitialized == 0) return false;

    memoizedIsInitialized = 1;
    return true;
  }

  @Override
  public void writeTo(com.google.protobuf.CodedOutputStream output)
                      throws java.io.IOException {
    if (replyMsgId_ != 0L) {
      output.writeUInt64(1, replyMsgId_);
    }
    if (replyId_ != 0L) {
      output.writeUInt64(2, replyId_);
    }
    if (((bitField0_ & 0x00000001) != 0)) {
      output.writeMessage(3, getReplyText());
    }
    if (replyUid_ != 0L) {
      output.writeUInt64(4, replyUid_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(replyWebcastUid_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 5, replyWebcastUid_);
    }
    getUnknownFields().writeTo(output);
  }

  @Override
  public int getSerializedSize() {
    int size = memoizedSize;
    if (size != -1) return size;

    size = 0;
    if (replyMsgId_ != 0L) {
      size += com.google.protobuf.CodedOutputStream
        .computeUInt64Size(1, replyMsgId_);
    }
    if (replyId_ != 0L) {
      size += com.google.protobuf.CodedOutputStream
        .computeUInt64Size(2, replyId_);
    }
    if (((bitField0_ & 0x00000001) != 0)) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(3, getReplyText());
    }
    if (replyUid_ != 0L) {
      size += com.google.protobuf.CodedOutputStream
        .computeUInt64Size(4, replyUid_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(replyWebcastUid_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, replyWebcastUid_);
    }
    size += getUnknownFields().getSerializedSize();
    memoizedSize = size;
    return size;
  }

  @Override
  public boolean equals(final Object obj) {
    if (obj == this) {
     return true;
    }
    if (!(obj instanceof ChatReplyRespInfo)) {
      return super.equals(obj);
    }
    ChatReplyRespInfo other = (ChatReplyRespInfo) obj;

    if (getReplyMsgId()
        != other.getReplyMsgId()) return false;
    if (getReplyId()
        != other.getReplyId()) return false;
    if (hasReplyText() != other.hasReplyText()) return false;
    if (hasReplyText()) {
      if (!getReplyText()
          .equals(other.getReplyText())) return false;
    }
    if (getReplyUid()
        != other.getReplyUid()) return false;
    if (!getReplyWebcastUid()
        .equals(other.getReplyWebcastUid())) return false;
    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
    return true;
  }

  @Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    hash = (37 * hash) + REPLY_MSG_ID_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
        getReplyMsgId());
    hash = (37 * hash) + REPLY_ID_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
        getReplyId());
    if (hasReplyText()) {
      hash = (37 * hash) + REPLY_TEXT_FIELD_NUMBER;
      hash = (53 * hash) + getReplyText().hashCode();
    }
    hash = (37 * hash) + REPLY_UID_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
        getReplyUid());
    hash = (37 * hash) + REPLY_WEBCAST_UID_FIELD_NUMBER;
    hash = (53 * hash) + getReplyWebcastUid().hashCode();
    hash = (29 * hash) + getUnknownFields().hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static ChatReplyRespInfo parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static ChatReplyRespInfo parseFrom(
      java.nio.ByteBuffer data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static ChatReplyRespInfo parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static ChatReplyRespInfo parseFrom(
      com.google.protobuf.ByteString data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static ChatReplyRespInfo parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static ChatReplyRespInfo parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static ChatReplyRespInfo parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static ChatReplyRespInfo parseFrom(
      java.io.InputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input, extensionRegistry);
  }

  public static ChatReplyRespInfo parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }

  public static ChatReplyRespInfo parseDelimitedFrom(
      java.io.InputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
  }
  public static ChatReplyRespInfo parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static ChatReplyRespInfo parseFrom(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input, extensionRegistry);
  }

  @Override
  public Builder newBuilderForType() { return newBuilder(); }
  public static Builder newBuilder() {
    return DEFAULT_INSTANCE.toBuilder();
  }
  public static Builder newBuilder(ChatReplyRespInfo prototype) {
    return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
  }
  @Override
  public Builder toBuilder() {
    return this == DEFAULT_INSTANCE
        ? new Builder() : new Builder().mergeFrom(this);
  }

  @Override
  protected Builder newBuilderForType(
      BuilderParent parent) {
    Builder builder = new Builder(parent);
    return builder;
  }
  /**
   * Protobuf type {@code ChatReplyRespInfo}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
      // @@protoc_insertion_point(builder_implements:ChatReplyRespInfo)
      ChatReplyRespInfoOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return Douyin.internal_static_ChatReplyRespInfo_descriptor;
    }

    @Override
    protected FieldAccessorTable
        internalGetFieldAccessorTable() {
      return Douyin.internal_static_ChatReplyRespInfo_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              ChatReplyRespInfo.class, Builder.class);
    }

    // Construct using tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.ChatReplyRespInfo.newBuilder()
    private Builder() {
      maybeForceBuilderInitialization();
    }

    private Builder(
        BuilderParent parent) {
      super(parent);
      maybeForceBuilderInitialization();
    }
    private void maybeForceBuilderInitialization() {
      if (com.google.protobuf.GeneratedMessageV3
              .alwaysUseFieldBuilders) {
        getReplyTextFieldBuilder();
      }
    }
    @Override
    public Builder clear() {
      super.clear();
      bitField0_ = 0;
      replyMsgId_ = 0L;
      replyId_ = 0L;
      replyText_ = null;
      if (replyTextBuilder_ != null) {
        replyTextBuilder_.dispose();
        replyTextBuilder_ = null;
      }
      replyUid_ = 0L;
      replyWebcastUid_ = "";
      return this;
    }

    @Override
    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return Douyin.internal_static_ChatReplyRespInfo_descriptor;
    }

    @Override
    public ChatReplyRespInfo getDefaultInstanceForType() {
      return ChatReplyRespInfo.getDefaultInstance();
    }

    @Override
    public ChatReplyRespInfo build() {
      ChatReplyRespInfo result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    @Override
    public ChatReplyRespInfo buildPartial() {
      ChatReplyRespInfo result = new ChatReplyRespInfo(this);
      if (bitField0_ != 0) { buildPartial0(result); }
      onBuilt();
      return result;
    }

    private void buildPartial0(ChatReplyRespInfo result) {
      int from_bitField0_ = bitField0_;
      if (((from_bitField0_ & 0x00000001) != 0)) {
        result.replyMsgId_ = replyMsgId_;
      }
      if (((from_bitField0_ & 0x00000002) != 0)) {
        result.replyId_ = replyId_;
      }
      int to_bitField0_ = 0;
      if (((from_bitField0_ & 0x00000004) != 0)) {
        result.replyText_ = replyTextBuilder_ == null
            ? replyText_
            : replyTextBuilder_.build();
        to_bitField0_ |= 0x00000001;
      }
      if (((from_bitField0_ & 0x00000008) != 0)) {
        result.replyUid_ = replyUid_;
      }
      if (((from_bitField0_ & 0x00000010) != 0)) {
        result.replyWebcastUid_ = replyWebcastUid_;
      }
      result.bitField0_ |= to_bitField0_;
    }

    @Override
    public Builder clone() {
      return super.clone();
    }
    @Override
    public Builder setField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        Object value) {
      return super.setField(field, value);
    }
    @Override
    public Builder clearField(
        com.google.protobuf.Descriptors.FieldDescriptor field) {
      return super.clearField(field);
    }
    @Override
    public Builder clearOneof(
        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
      return super.clearOneof(oneof);
    }
    @Override
    public Builder setRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        int index, java.lang.Object value) {
      return super.setRepeatedField(field, index, value);
    }
    @java.lang.Override
    public Builder addRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        java.lang.Object value) {
      return super.addRepeatedField(field, value);
    }
    @java.lang.Override
    public Builder mergeFrom(com.google.protobuf.Message other) {
      if (other instanceof tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.ChatReplyRespInfo) {
        return mergeFrom((tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.ChatReplyRespInfo)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.ChatReplyRespInfo other) {
      if (other == tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.ChatReplyRespInfo.getDefaultInstance()) return this;
      if (other.getReplyMsgId() != 0L) {
        setReplyMsgId(other.getReplyMsgId());
      }
      if (other.getReplyId() != 0L) {
        setReplyId(other.getReplyId());
      }
      if (other.hasReplyText()) {
        mergeReplyText(other.getReplyText());
      }
      if (other.getReplyUid() != 0L) {
        setReplyUid(other.getReplyUid());
      }
      if (!other.getReplyWebcastUid().isEmpty()) {
        replyWebcastUid_ = other.replyWebcastUid_;
        bitField0_ |= 0x00000010;
        onChanged();
      }
      this.mergeUnknownFields(other.getUnknownFields());
      onChanged();
      return this;
    }

    @java.lang.Override
    public final boolean isInitialized() {
      return true;
    }

    @java.lang.Override
    public Builder mergeFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      if (extensionRegistry == null) {
        throw new java.lang.NullPointerException();
      }
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            case 8: {
              replyMsgId_ = input.readUInt64();
              bitField0_ |= 0x00000001;
              break;
            } // case 8
            case 16: {
              replyId_ = input.readUInt64();
              bitField0_ |= 0x00000002;
              break;
            } // case 16
            case 26: {
              input.readMessage(
                  getReplyTextFieldBuilder().getBuilder(),
                  extensionRegistry);
              bitField0_ |= 0x00000004;
              break;
            } // case 26
            case 32: {
              replyUid_ = input.readUInt64();
              bitField0_ |= 0x00000008;
              break;
            } // case 32
            case 42: {
              replyWebcastUid_ = input.readStringRequireUtf8();
              bitField0_ |= 0x00000010;
              break;
            } // case 42
            default: {
              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                done = true; // was an endgroup tag
              }
              break;
            } // default:
          } // switch (tag)
        } // while (!done)
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.unwrapIOException();
      } finally {
        onChanged();
      } // finally
      return this;
    }
    private int bitField0_;

    private long replyMsgId_ ;
    /**
     * <code>uint64 reply_msg_id = 1;</code>
     * @return The replyMsgId.
     */
    @java.lang.Override
    public long getReplyMsgId() {
      return replyMsgId_;
    }
    /**
     * <code>uint64 reply_msg_id = 1;</code>
     * @param value The replyMsgId to set.
     * @return This builder for chaining.
     */
    public Builder setReplyMsgId(long value) {

      replyMsgId_ = value;
      bitField0_ |= 0x00000001;
      onChanged();
      return this;
    }
    /**
     * <code>uint64 reply_msg_id = 1;</code>
     * @return This builder for chaining.
     */
    public Builder clearReplyMsgId() {
      bitField0_ = (bitField0_ & ~0x00000001);
      replyMsgId_ = 0L;
      onChanged();
      return this;
    }

    private long replyId_ ;
    /**
     * <code>uint64 reply_id = 2;</code>
     * @return The replyId.
     */
    @java.lang.Override
    public long getReplyId() {
      return replyId_;
    }
    /**
     * <code>uint64 reply_id = 2;</code>
     * @param value The replyId to set.
     * @return This builder for chaining.
     */
    public Builder setReplyId(long value) {

      replyId_ = value;
      bitField0_ |= 0x00000002;
      onChanged();
      return this;
    }
    /**
     * <code>uint64 reply_id = 2;</code>
     * @return This builder for chaining.
     */
    public Builder clearReplyId() {
      bitField0_ = (bitField0_ & ~0x00000002);
      replyId_ = 0L;
      onChanged();
      return this;
    }

    private tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.Text replyText_;
    private com.google.protobuf.SingleFieldBuilderV3<
        tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.Text, tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.Text.Builder, tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.TextOrBuilder> replyTextBuilder_;
    /**
     * <code>.Text reply_text = 3;</code>
     * @return Whether the replyText field is set.
     */
    public boolean hasReplyText() {
      return ((bitField0_ & 0x00000004) != 0);
    }
    /**
     * <code>.Text reply_text = 3;</code>
     * @return The replyText.
     */
    public tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.Text getReplyText() {
      if (replyTextBuilder_ == null) {
        return replyText_ == null ? tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.Text.getDefaultInstance() : replyText_;
      } else {
        return replyTextBuilder_.getMessage();
      }
    }
    /**
     * <code>.Text reply_text = 3;</code>
     */
    public Builder setReplyText(tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.Text value) {
      if (replyTextBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        replyText_ = value;
      } else {
        replyTextBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000004;
      onChanged();
      return this;
    }
    /**
     * <code>.Text reply_text = 3;</code>
     */
    public Builder setReplyText(
        tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.Text.Builder builderForValue) {
      if (replyTextBuilder_ == null) {
        replyText_ = builderForValue.build();
      } else {
        replyTextBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000004;
      onChanged();
      return this;
    }
    /**
     * <code>.Text reply_text = 3;</code>
     */
    public Builder mergeReplyText(tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.Text value) {
      if (replyTextBuilder_ == null) {
        if (((bitField0_ & 0x00000004) != 0) &&
          replyText_ != null &&
          replyText_ != tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.Text.getDefaultInstance()) {
          getReplyTextBuilder().mergeFrom(value);
        } else {
          replyText_ = value;
        }
      } else {
        replyTextBuilder_.mergeFrom(value);
      }
      if (replyText_ != null) {
        bitField0_ |= 0x00000004;
        onChanged();
      }
      return this;
    }
    /**
     * <code>.Text reply_text = 3;</code>
     */
    public Builder clearReplyText() {
      bitField0_ = (bitField0_ & ~0x00000004);
      replyText_ = null;
      if (replyTextBuilder_ != null) {
        replyTextBuilder_.dispose();
        replyTextBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     * <code>.Text reply_text = 3;</code>
     */
    public tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.Text.Builder getReplyTextBuilder() {
      bitField0_ |= 0x00000004;
      onChanged();
      return getReplyTextFieldBuilder().getBuilder();
    }
    /**
     * <code>.Text reply_text = 3;</code>
     */
    public tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.TextOrBuilder getReplyTextOrBuilder() {
      if (replyTextBuilder_ != null) {
        return replyTextBuilder_.getMessageOrBuilder();
      } else {
        return replyText_ == null ?
            tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.Text.getDefaultInstance() : replyText_;
      }
    }
    /**
     * <code>.Text reply_text = 3;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.Text, tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.Text.Builder, tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.TextOrBuilder> 
        getReplyTextFieldBuilder() {
      if (replyTextBuilder_ == null) {
        replyTextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.Text, tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.Text.Builder, tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.TextOrBuilder>(
                getReplyText(),
                getParentForChildren(),
                isClean());
        replyText_ = null;
      }
      return replyTextBuilder_;
    }

    private long replyUid_ ;
    /**
     * <code>uint64 reply_uid = 4;</code>
     * @return The replyUid.
     */
    @java.lang.Override
    public long getReplyUid() {
      return replyUid_;
    }
    /**
     * <code>uint64 reply_uid = 4;</code>
     * @param value The replyUid to set.
     * @return This builder for chaining.
     */
    public Builder setReplyUid(long value) {

      replyUid_ = value;
      bitField0_ |= 0x00000008;
      onChanged();
      return this;
    }
    /**
     * <code>uint64 reply_uid = 4;</code>
     * @return This builder for chaining.
     */
    public Builder clearReplyUid() {
      bitField0_ = (bitField0_ & ~0x00000008);
      replyUid_ = 0L;
      onChanged();
      return this;
    }

    private java.lang.Object replyWebcastUid_ = "";
    /**
     * <code>string reply_webcast_uid = 5;</code>
     * @return The replyWebcastUid.
     */
    public java.lang.String getReplyWebcastUid() {
      java.lang.Object ref = replyWebcastUid_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        replyWebcastUid_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string reply_webcast_uid = 5;</code>
     * @return The bytes for replyWebcastUid.
     */
    public com.google.protobuf.ByteString
        getReplyWebcastUidBytes() {
      java.lang.Object ref = replyWebcastUid_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        replyWebcastUid_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string reply_webcast_uid = 5;</code>
     * @param value The replyWebcastUid to set.
     * @return This builder for chaining.
     */
    public Builder setReplyWebcastUid(
        java.lang.String value) {
      if (value == null) { throw new NullPointerException(); }
      replyWebcastUid_ = value;
      bitField0_ |= 0x00000010;
      onChanged();
      return this;
    }
    /**
     * <code>string reply_webcast_uid = 5;</code>
     * @return This builder for chaining.
     */
    public Builder clearReplyWebcastUid() {
      replyWebcastUid_ = getDefaultInstance().getReplyWebcastUid();
      bitField0_ = (bitField0_ & ~0x00000010);
      onChanged();
      return this;
    }
    /**
     * <code>string reply_webcast_uid = 5;</code>
     * @param value The bytes for replyWebcastUid to set.
     * @return This builder for chaining.
     */
    public Builder setReplyWebcastUidBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) { throw new NullPointerException(); }
      checkByteStringIsUtf8(value);
      replyWebcastUid_ = value;
      bitField0_ |= 0x00000010;
      onChanged();
      return this;
    }
    @java.lang.Override
    public final Builder setUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.setUnknownFields(unknownFields);
    }

    @java.lang.Override
    public final Builder mergeUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.mergeUnknownFields(unknownFields);
    }


    // @@protoc_insertion_point(builder_scope:ChatReplyRespInfo)
  }

  // @@protoc_insertion_point(class_scope:ChatReplyRespInfo)
  private static final tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.ChatReplyRespInfo DEFAULT_INSTANCE;
  static {
    DEFAULT_INSTANCE = new tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.ChatReplyRespInfo();
  }

  public static tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.ChatReplyRespInfo getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

  private static final com.google.protobuf.Parser<ChatReplyRespInfo>
      PARSER = new com.google.protobuf.AbstractParser<ChatReplyRespInfo>() {
    @java.lang.Override
    public ChatReplyRespInfo parsePartialFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      Builder builder = newBuilder();
      try {
        builder.mergeFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(builder.buildPartial());
      } catch (com.google.protobuf.UninitializedMessageException e) {
        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(e)
            .setUnfinishedMessage(builder.buildPartial());
      }
      return builder.buildPartial();
    }
  };

  public static com.google.protobuf.Parser<ChatReplyRespInfo> parser() {
    return PARSER;
  }

  @java.lang.Override
  public com.google.protobuf.Parser<ChatReplyRespInfo> getParserForType() {
    return PARSER;
  }

  @java.lang.Override
  public tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.ChatReplyRespInfo getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}

